package com.bbc.mybatisplus;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * @author wl
 */
@Slf4j
@SpringBootApplication
public class MybatisPlusDemoApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(MybatisPlusDemoApplication.class);
        ConfigurableEnvironment env = app.run(args).getEnvironment();
        log.info("(♥◠‿◠)ﾉﾞ  mybatis-plus启动成功");
        /*
             可以使用这个打印自定义配置信息、
             欢迎页、测试地址或者提示性方案等
         */
        log.info("地址：\thttp://127.0.0.1:{}", env.getProperty("server.port"));
    }

}
